<!-- /ezadm/template/board/ezbbs_category.htm :: 2010-03-04 :: ksb -->
<script type="text/javascript" src="/js/ezadm_order.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function() {
	//폼체크
	var container1 = $("div#lay_error_container1");
	$("form[name=update_form]").validate({
		errorContainer: container1,
		errorLabelContainer: $("ol", container1),
		wrapper: "li"
	});
});
//]]>
</script>

<ul>
	<li class="black">
		<strong>"<?=$config_record['ebcf_name']?>"</strong>
		게시판은 현재 분류기능을 <span class="red"><?php if ($config_record['ebcf_artcat_flag']) { ?>사용<?php } else { ?>미사용<?php } ?></span> 상태입니다. ===&gt;
		<a href="#" onclick="g_goto_receiver('<?=$g_job?>', 'change', '<?=$config_record['ebcf_id']?>'); return false;"><span class="red"><strong>분류기능 <?php if ($config_record['ebcf_artcat_flag']) { ?>미사용<?php } else { ?>사용<?php } ?>으로 변경</strong></span></a>
	</li>
	<li class="blue">발급된 분류아이디는 변경이 불가하며, 삭제시 관련 게시물의 분류 정보는 초기화 처리됩니다.</li>
</ul>

<!-- 게시판 분류 목록 ▼▼▼ -->
<form name="update_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="update" />
<input type="hidden" name="ebcfac_ebcfid" value="<?=$config_record['ebcf_id']?>" />

	<table class="form1">
	<caption>게시판 분류 목록</caption>
	<col width="25%" /><col /><col width="10%" /><col width="15%" /><col width="10%" />
	<tr>
		<th>아이디</th>
		<th>분류명</th>
		<th>순서</th>
		<th>게시물수</th>
		<th>관리자툴</th>
	</tr>
	<?php if (count($category_list)) { ?>
		<?php foreach ($category_list as $k => $v) { ?>
		<tr>
			<th class="disabled"><?=$v['ebcfac_id']?><input type="hidden" name="data[<?=$k?>][ebcfac_id]" value="<?=$v['ebcfac_id']?>" /></th>
			<td><input type="text" class="full required" name="data[<?=$k?>][ebcfac_pname]" value="<?=$v['ebcfac_pname']?>" title="<?=$v['ebcfac_id']?> 분류명을 입력하세요." /></td>
			<td>
				<select class="full" name="data[<?=$k?>][ebcfac_sort]" onchange="g_change_order(this,'ebcfac_sort')" onclick="g_click_order(this);">
					<?php for ($i=1; $i<=$max_sort; $i++) { ?>
					<option value="<?=$i?>"<?php if ($i == $v["ebcfac_sort"]) { ?> selected="selected"<?php } ?>><?=$i?></option>
					<?php } ?>
				</select>
			</td>
			<th class="disabled"><?=number_format($count_list[$v['ebcfac_id']])?></th>
			<td><input type="button" class="full_button" value="삭제" onclick="g_goto_delete('<?=$g_job?>', 'delete', '<?=$v['ebcfac_ebcfid']?>', '<?=$v['ebcfac_id']?>');" /></td>
		</tr>
		<?php } ?>
	<?php } else { ?>
		<tr>
			<td class="empty" colspan="5">등록된 자료가 없습니다.</td>
		</tr>
	<?php } ?>
	</table>

	<div id="lay_error_container1" class="error_container">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>


	<div class="util">
		<input type="submit" class="button" value="수정" />
		<input type="reset" class="button" value="초기화" />
		<input type="button" class="button" value="닫기" onclick="self.close();" />
	</div>

</form>
<!-- 게시판 분류 목록 ▲▲▲ -->

<br /><br />

<!-- 게시판 분류 등록폼 ▼▼▼ -->
<script type="text/javascript">
//<![CDATA[
$(function() {
	//폼체크
	var container2 = $("div#lay_error_container2");
	$("form[name=insert_form]").validate({
		errorContainer: container2,
		errorLabelContainer: $("ol", container2),
		wrapper: "li",
		rules: {
			ebcfac_id: {
				alphanum: true
			}
		}
	});
});
//]]>
</script>

<form name="insert_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="insert" />
<input type="hidden" name="ebcfac_ebcfid" value="<?=$config_record['ebcf_id']?>" />

	<table class="form2" style="width:500px;" align="center">
	<caption>게시판 분류 등록</caption>
	<col width="30%" /><col /><col width="12%" /><col width="12%" /><col width="12%" />
	<tr>
		<th>아이디</th>
		<th>분류명</th>
		<th>순서</th>
		<th colspan="2">기능툴</th>
	</tr>
	<tr>
		<td><input type="text" name="ebcfac_id" class="full center required" style="ime-mode:disabled" title="아이디를 입력하세요.(영문 or 숫자)" /></td>
		<td><input type="text" name="ebcfac_pname" class="full required" title="분류명을 입력하세요." /></td>
		<td><?=$Html->full_select_form('ebcfac_sort', range(1, $max_sort + 1), $max_sort + 1, '_value', '_value')?></td>
		<td class="util"><input type="submit" value="추가" class="full_button" /></td>
		<td class="util"><input type="button" value="닫기" class="full_button" onclick="self.close();" /></td>
	</tr>
	</table>

	<div id="lay_error_container2" class="error_container" style="width:500px;">
		<ol>
			<li>에러 메세지!!</li>
		</ol>
	</div>

</form>
<!-- 게시판 분류 등록폼 ▲▲▲ -->